package com.tiger.cloud.dao.crm;

import org.apache.ibatis.annotations.Param;

import com.tiger.cloud.common.mybatis.MybatisTigerDao;
import com.tiger.cloud.model.crm.Peers;

/**
 * 同行信息Dao
 */
public interface PeersDao extends MybatisTigerDao<Peers>{
	/**
	 * 更新最后交流时间
	 */
	Integer updateLastCommunicateTime(@Param("userId")Long userId,@Param("customerId") Long customerId);

	Integer updateByUserId(Peers peers);
	
	Long countByUserId(Peers peers);

	Integer updateLastUpdateTime(@Param("peersId") Long peersId);
	
}